//
//  PJDetailViewController.m
//  HonlivApp
//
//  Created by admin on 2017/6/25.
//  Copyright © 2017年 honliv. All rights reserved.
//

#import "PJDetailViewController.h"

@interface PJDetailViewController ()

@end

@implementation PJDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"批假";
}
-(void)getRequestURL{
    self.user = User.currentUser;
    [self loadRequestURL:^(GetURL handler) {
        self.viewModel = [[DetailViewModel alloc] init];
        NSDictionary *gidDic = @{@"user_name":self.user.username,@"user_id":self.user.userId,@"SqlNo":@"6",@"url":indicateOAPJ_url};
        [self.viewModel getGidWithDic:gidDic Success:^(NSString *gid) {
            NSString *requestURL = [NSString stringWithFormat:@"%@Gid=%@",HPdetail_url,gid];
            handler(requestURL);
        }];
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
